import React from 'react';
import {connect} from 'dva';
import styles from './index.less';
/**
 * 银行信息
 */
class cBankInfo extends React.Component {
  constructor(props) {
    super(props);

    this.state = {

    }
  }
  render(){
    return (
      <div className={styles.baseList}>
        <div className={styles.item}>
          <div className={styles.des}>AccountHolder</div>
          <div className={styles.value}>{this.props.detail.advMast && this.props.detail.advMast.accountHolder}</div>
        </div>
        <div className={styles.item}>
          <div className={styles.des}>Bank Account</div>
          <div className={styles.value}>{this.props.detail.advMast && this.props.detail.advMast.bankAccount}</div>
        </div>
        <div className={styles.item}>
          <div className={styles.des}>Bank Name</div>
          <div className={styles.value}>{this.props.detail.advMast && this.props.detail.advMast.bankName}</div>
        </div>
        <div className={styles.item}>
          <div className={styles.des}>Remark</div>
          <div className={styles.value}>{this.props.detail.advMast && this.props.detail.advMast.remark}</div>
        </div>
      </div>
    )
  }
}


function mapStateToProps(state) {
  return {
    ...state.detail
  }
}
export default connect(mapStateToProps)(cBankInfo);
